package com.scnu.api.client;

import com.scnu.api.vo.user.UserInfoVo;
import com.scnu.api.vo.user.UserVo;
import com.scnu.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;
import reactor.core.publisher.Mono;

import java.time.LocalDateTime;

@FeignClient(value = "rc-user", contextId = "user-service")
public interface UserClient {


/*    @GetMapping("/user/logout-time")
    Mono<LocalDateTime> getUserLogoutTime(@RequestParam("userId") Long userId);*/

    @GetMapping("/user/info")
    UserInfoVo getUserInfo(@RequestParam(value = "userId", required = false) Long userId);


    @GetMapping("/user")
    UserVo getUser(@RequestParam(value = "userId", required = false) Long userId);


}
